/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ircclient;
import javax.swing.JOptionPane;
import java.net.Socket;
public class IrcClient {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Socket s;
        String name = JOptionPane.showInputDialog("Enter a name");
        String hostName = JOptionPane.showInputDialog("Enter a ip");
        try
        {
            s = new Socket(hostName,4444);
            Gui setUp=new Gui(name, s);
            GetInput catcher=new GetInput(s,setUp);
            catcher.start();
        }
        catch(Exception e){JOptionPane.showMessageDialog(null, e);}

    }
}
